package intention

import (
	"github.com/pkg/errors"
	"mcp-demo/internal/model/vo/intention/resp"
)

// IntentionService Service
type IntentionService struct {
}

// QueryDemo 查询意图列表
func (i *IntentionService) QueryDemo(p1 string, p2 string) ([]resp.DemoResp, error) {
	resps, err := aiIntentionRepository.QueryIntention(p1, p2)
	if err != nil {
		return nil, errors.Wrapf(err, "查询列表失败, p1: %s, p2: %s", p1, p2)
	}
	return resps, nil
}
